import { OrderStatusEnum } from "./enum";

export namespace OrderTypes{
    export interface OrderItem {
        id:number;
        //订单号
        outTradeNo:string;
        //微信下单单号
        transactionId:string;
        openid:string;
        storeCode:string;
        salePrice: number;
        total: number;
        refund: number;
        //支付方式 1=微信支付
        payType:1 | 2;
        //促销方案
        schemeId: number;
        status: OrderStatusEnum;
        remark: string;
        reason: string;
        createTime: string;
        payTime: string;
        updateTime: string;
        prepayTime: string;
        form: any[];
        mobile: string
    }

    export interface OrderParams{
        outTradeNo: string;
        mobile: string;
        storeCode: string;
        staffCode: string;
        startPayTime: string;
        endPayTime: string;
        status:OrderStatusEnum 
    }
}